﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.ComponentModel;

namespace Light.Utility
{
    /// <summary>
    /// 摘要:
    /// 　　指示一个属性可用于日志记录。
    /// </summary>
    [Serializable]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    [ComVisible(true)]
    public sealed class TraceableAttribute : Attribute
    {
        private string _name = string.Empty;

        public TraceableAttribute()
            : base()
        {
        }

        public TraceableAttribute(string name)
            : base()
        {
            this.Name = name;
        }

        /// <summary>
        /// 日志中记录的名称
        /// </summary>
        public string Name
        {
            get { return this._name; }
            set { this._name = value; }
        }
    }
}